package com.thx.appserver.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.thx.appserver.model.CappSoft;
import com.thx.common.orm.PaginationDao;



@Repository
public class CappSoftDao extends PaginationDao<CappSoft> {


	public  List<CappSoft>  searchCappSoft(){
		String hql = "from CappSoft where 1=1 ";
	
		hql += " order by verCode desc";
		return findPageList(hql);
	}
	
	
	public CappSoft getNewCappSoft(){
		String hql = "from CappSoft order by verCode desc";
		 List<CappSoft> cs=createQuery(hql).list();
		 if(cs!=null && cs.size()>0){
			 return cs.get(0);
		 }
		 return null;
	}
}
